<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["checklist_id"])
{
	$checklist_id = strip_tags($_REQUEST["checklist_id"]);
    $status_id = strip_tags($_REQUEST["status_id"]);
	$modified = date("Y-m-d H:m:s");
	 
	$db_query = sprintf("UPDATE agent_checklist 
							SET status_id='".$status_id."',	
								modified='".$modified."'
							WHERE checklist_id='".$checklist_id."'");
 
 	file_put_contents  ( "update_checklist.txt", $db_query);   
 
 	$result = mysql_query($db_query);
    	if (!$result) {
        		die('invalid query');    // . mysql_error());
    		}
    		
    		
}

//mysql_free_result( $result )
	
?>